package com.mty.springboot.service;

import com.mty.springboot.model.PageInfo;
import com.mty.springboot.model.Score;
import java.util.*;

/**
 * 用户Service层接口
 * @author: mty
 */
public interface ScoreService{

    //分页查询
    public PageInfo<Score> findPageInfo(Integer pageIndex, Integer pageSize, Map mp);

    //添加
    public int addScore(Score score);

    //删除
    public int deleteScore(String id);

    //修改
    public int updateScore(Score score);

    //根据ID查询
    public Score findScoreById(String id);

    //查询所有
    public List<Score> getAll();

    //按照条件查询
    public List<Score> queryFilter(Map mp);

    //获取积分榜
    public List<Score> queryBang();
}
